package com.atguigu.gmall.product.service;


import com.atguigu.gmall.model.product.SkuInfo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

/**
* @author 钟涛
* @description 针对表【sku_info(库存单元表)】的数据库操作Service
* @createDate 2021-12-08 18:36:46
*/
public interface SkuInfoService extends IService<SkuInfo> {

    void saveSkuInfo(SkuInfo skuInfo);
    //sku的上架和下架方法
    void updateSkuOnSale(Long skuId, int status);

    BigDecimal getSkuPrice(Long skuId);

    void rebuildSkuBloomFilter();

}
